package com.hgw.Demo04_BuilderPattern.builder;

/**
 * Data time:2021/12/12 21:10
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class Client {
    public static void main(String[] args) {
        // 创建指挥者对象
        Director director = new Director(new OfoBuilder());
        // 让指挥者只会组装自行车
        Bike bike = director.construct();

        System.out.println(bike.getFrame());
        System.out.println(bike.getSeat());
    }

}
